import request from '@/utils/request'

// 查询章节/练习题列表
export function listChapter_test(query) {
  return request({
    url: '/teach/chapter_test/list',
    method: 'get',
    params: query
  })
}

// 查询章节/练习题详细
export function getChapter_test(id) {
  return request({
    url: '/teach/chapter_test/' + id,
    method: 'get'
  })
}

// 新增章节/练习题
export function addChapter_test(data) {
  return request({
    url: '/teach/chapter_test',
    method: 'post',
    data: data
  })
}

// 修改章节/练习题
export function updateChapter_test(data) {
  return request({
    url: '/teach/chapter_test',
    method: 'put',
    data: data
  })
}

// 删除章节/练习题
export function delChapter_test(id) {
  return request({
    url: '/teach/chapter_test/' + id,
    method: 'delete'
  })
}
